package com.qfmy.service.impl.common;

import com.qfmy.mapper.common.LogMapper;
import com.qfmy.service.common.LogService;
import model.entity.common.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 清风明月
 * @Package com.qfmy.service.impl.common
 * @date 2025/5/17
 * @description 记录日志
 */
@Service
@SuppressWarnings("all")
public class LogServiceImpl implements LogService {

    /**
     * 注入mapper
     */
    @Autowired
    private
    LogMapper logMapper;

    /**
     * 保存日志
     * @param log
     */
    @Override
    public void saveLog(Log log) {
        logMapper.insert(log);
    }
}
